package gupao.concurrency.simuio;

import gupao.concurrency.utils.Utils;

public class SimuioService {

    public static void io50(){
       simu(2,2);
    }

    public static void io75(){
        simu(1,3);
    }

    private static void simu(long cpuTime, long ioTime){
        Utils.waitMillis(cpuTime); //cpu
        Utils.sleepIgnoreExp(ioTime); //io
    }
}
